#nationDraw {
  --nr-bronze: #756346;
  --nr-silk-ink: #f5e7c6;
  --nr-aura: #766444;
  --nr-step: clamp(55px, 5.6vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "title" "display" "brief" "action";
  align-content: start;
  gap: 15px;
  align-self: start;
  min-width: 0;
  margin: 0;
  padding: clamp(18px, 1.7vw, 24px);
  color: #f1e7d3;
  border: 1px solid #625a46;
  border-top: 2px solid #bc9e66;
  background: linear-gradient(145deg, #30372d, #272d25 52%, #21261f);
  box-shadow: inset 0 0 0 3px #252c23;
}
#nationDraw[data-phase="landed"] {grid-template-areas:"title" "display" "brief"}
#nationDraw[data-faction="wei"] {--nr-aura:#76516c}
#nationDraw[data-faction="shu"] {--nr-aura:#687947}
#nationDraw[data-faction="wu"] {--nr-aura:#94533a}
#nationDraw .nr-title {grid-area:title;color:#f5ead4;font:700 clamp(21px,2vw,27px)/1.12 var(--display);letter-spacing:-.055em;margin:0}
#nationDraw .nr-display {
  grid-area:display;
  position:relative;
  display:grid;place-items:center;min-width:0;min-height:98px;
  border-top:1px solid #5a5340;border-bottom:1px solid #59513e;
  background:radial-gradient(ellipse at 50% 10%,#3c3d2d 0%,#22281f 60%,#1c211b);
}
#nationDraw .nr-window {position:relative;width:calc(3 * var(--nr-step));overflow:hidden}
#nationDraw .nr-window::before {
  content:"";position:absolute;left:50%;top:0;z-index:1;transform:translateX(-50%);
  border:4px solid transparent;border-top:5px solid #ddbc7b;border-bottom:0;
}
#nationDraw .nr-track {display:flex;width:var(--nr-step)}
#nationDraw .nr-slot {display:grid;justify-items:center;gap:5px;flex:none;width:var(--nr-step);padding:11px 0 7px}
#nationDraw .wei {--nr-flag:#695069;--nr-lining:#a68d9e}
#nationDraw .shu {--nr-flag:#53683f;--nr-lining:#9eaf79}
#nationDraw .wu {--nr-flag:#974c34;--nr-lining:#cb8b65}
#nationDraw .nr-standard {
  position:relative;display:block;width:42px;height:49px;
  filter:drop-shadow(2px 3px 1px #0d100d91);
}
#nationDraw .nr-standard::before {
  content:"";position:absolute;inset:1px 0 auto;height:3px;
  background:linear-gradient(90deg,#96805a 0 5%,#dcc189 5% 15%,#8c7251 15% 20%,#b99967 20% 80%,#8c7251 80% 85%,#dcc189 85% 95%,#96805a 95%);
}
#nationDraw .nr-silk {
  position:absolute;inset:5px 3px 0;display:grid;align-content:start;justify-content:center;padding-top:5px;
  font:600 22px/1.2 var(--display);color:var(--nr-silk-ink);
  background:linear-gradient(90deg,var(--nr-lining) 0 1px,var(--nr-flag) 1px 8%,var(--nr-lining) 8% 11%,var(--nr-flag) 11% 87%,var(--nr-lining) 87% 90%,var(--nr-flag) 90% 100%);
  clip-path:polygon(0 0,100% 0,100% 85%,84% 78%,50% 100%,16% 78%,0 85%);
}
#nationDraw .nr-flag-name {font:600 11px/1.3 var(--sans);color:#d6cbb4}
#nationDraw .nr-sr {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);margin:0}
#nationDraw .nr-brief {grid-area:brief;margin:0;color:#c4c6b6;font:400 13px/1.5 var(--sans);word-break:keep-all}
#nationDraw .nr-action {grid-area:action;min-width:0}
#nationSpin {
  width:100%;display:flex;justify-content:center;align-items:center;gap:10px;padding:10px;
  min-height:43px;border:1px solid #d0af75;border-bottom:2px solid #8f7145;border-radius:3px;
  color:#2d261b;background:linear-gradient(155deg,#e7c992,#c9a56d);font:700 14px/1.25 var(--sans);
}
#nationSpin::before {content:"";width:20px;height:20px;background:url("문양/banner.png") center/contain no-repeat;image-rendering:pixelated}
#nationSpin:enabled:hover {background:#efd59f}
#nationSpin:focus-visible {outline:2px solid #fff1ca;outline-offset:3px}
#nationSpin:disabled {color:#c8c3ac;border-color:#655c47;background:#404333;opacity:1}
#nationDraw[data-phase="landed"] .nr-display {
  min-height:151px;
  background:radial-gradient(ellipse at 52% 75%,color-mix(in srgb,var(--nr-aura) 68%,#252a21),#252a21 70%);
}
#nationDraw .nr-hero {display:block;justify-self:center;align-self:end;position:relative;z-index:1;width:148px;height:148px;object-fit:contain;image-rendering:pixelated}
#nationDraw .nr-winner {position:absolute;left:10px;top:9px;width:28px;height:34px}
#nationDraw .nr-winner .nr-silk {padding-top:2px;font-size:15px}
#nationDraw .nr-brief .nr-caption {display:block;color:#c2af86;font-size:11px;font-weight:600}
#nationDraw .nr-brief strong {display:block;margin:2px 0 3px;color:#f2e5c9;font:700 21px/1.25 var(--display);letter-spacing:-.045em}
#nationDraw .nr-recipe {display:block;color:#c5c6b8;font-size:12px}
@media (max-width:850px) {
  #nationDraw {--nr-step:40px;grid-template-columns:minmax(0,1fr) auto auto;grid-template-areas:"title display action" "brief display action";column-gap:14px;row-gap:4px;align-content:center;align-items:center;padding:11px 15px}
  #nationDraw .nr-display {min-height:0;border:0;background:none}
  #nationDraw .nr-title {font-size:22px}
  #nationDraw .nr-brief {font-size:12px}
  #nationDraw .nr-slot {padding:6px 0 2px;gap:0}
  #nationDraw .nr-standard {width:29px;height:35px}
  #nationDraw .nr-silk {font-size:15px;padding-top:2px}
  #nationDraw .nr-flag-name {font-size:10px}
  #nationSpin {min-height:38px;white-space:nowrap;padding:7px 10px;font-size:12px;gap:4px}
  #nationDraw[data-phase="landed"] {grid-template-columns:minmax(0,1fr) 89px;grid-template-areas:"title display" "brief display";column-gap:12px}
  #nationDraw[data-phase="landed"] .nr-display {width:89px;height:79px;min-height:0;background:radial-gradient(ellipse at 54% 75%,var(--nr-aura),transparent 71%)}
  #nationDraw[data-phase="landed"] .nr-hero {width:78px;height:78px}
  #nationDraw .nr-winner {left:0;top:0;width:21px;height:26px}
  #nationDraw .nr-winner .nr-silk {font-size:10px;padding-top:1px}
  #nationDraw .nr-brief .nr-caption {display:inline;font-size:10px;margin-right:5px}
  #nationDraw .nr-brief strong {display:inline;font:700 14px/1.3 var(--sans);letter-spacing:-.04em}
  #nationDraw .nr-recipe {font-size:11px}
}
@media (max-width:480px) {
  #nationDraw {--nr-step:33px;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"title display" "brief display" "action display";gap:4px 6px;padding:10px 12px}
  #nationDraw .nr-title {font-size:20px}
  #nationDraw .nr-brief {font-size:11px}
  #nationDraw .nr-action {justify-self:start}
  #nationSpin {padding:3px 9px;min-height:34px;font-size:11px}
  #nationSpin::before {width:15px;height:16px}
  #nationDraw .nr-display {align-self:center}
  #nationDraw[data-phase="landed"] {grid-template-columns:minmax(0,1fr) 69px}
  #nationDraw[data-phase="landed"] .nr-display {width:69px;height:67px}
  #nationDraw[data-phase="landed"] .nr-hero {width:66px;height:66px}
}
